<%@ include file="/WEB-INF/views/public/include.jsp"%>
<!DOCTYPE html>
<html>
<head>
	<!-- 页面编码 -->
	<meta charset="utf-8">
	<!-- 设置IE内核优先为Edge -->
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<!-- 设置360浏览器渲染引擎为webkit -->
  	<meta name="renderer" content="webkit">
	<title>约见管理中心</title>
	<link rel="stylesheet" href="/resources/admin/static/css/bootstrap.css">
	<link rel="stylesheet" href="/resources/admin/static/css/public.css">
	<!-- 基本脚本载入 -->
	<script src="//cdn.bootcss.com/jquery/2.1.4/jquery.min.js"></script>
	<script src="/resources/admin/static/js/bootstrap.min.js"></script>
</head>
<body>
	<header class="navbar navbar-default">
		<div class="container">
			<div class="navbar-header">
				<a href="/admin/home" class="navbar-brand">约见管理中心</a>
			</div>
			<!-- END .navbar-header -->
		</div>
		<!-- END .container -->
	</header>
	<!-- END .navbar -->
	<div id="content" class="site-content">
		<div class="container">
			<div class="row">
				<div class="col-md-4 col-md-offset-4">
					<%
						String action = request.getParameter("action");
						if ("wrong".equals(action)){
							out.print("<div class=\"alert alert-danger\" role=\"alert\">用户名或密码错误！</div>");
						}else if ("notlogin".equals(action)){
							out.print("<div class=\"alert alert-danger\" role=\"alert\">您还没有登录！！</div>");
						}
					%>
					<form action="./login.do" method="post">
						<div class="form-group">
							<label class="control-label">用户名</label>
							<input name="name" type="text" class="form-control" required>
						</div>
						<!-- END .form-group -->
						<div class="form-group">
							<label class="control-label">密码</label>
							<input type="password" name="password" class="form-control" required>
						</div>
						<!-- END .form-group -->
						<div class="form-group">
							<button type="submit" class="btn btn-primary btn-block">登录</button>
						</div>
					</form>
				</div>
				<!-- END .col-md-4 -->
			</div>
			<!-- END .row -->
		</div>
		<!-- END .container -->
	</div>
	<!-- END #content -->
	<script src="/resources/admin/static/js/main.js"></script>
</body>
</html>